$INCLUDE: 'C:\FG\FASTGRAF.FI'

      PROGRAM MAIN

      INTEGER OLD_MODE
      INTEGER FG_AUTOMODE, FG_GETMAXX, FG_GETMAXY, FG_GETMODE

      CALL FG_INITPM
      OLD_MODE = FG_GETMODE()
      CALL FG_SETMODE(FG_AUTOMODE())

      CALL FG_SETCOLOR(2)
      CALL FG_RECT(0,FG_GETMAXX(),0,FG_GETMAXY())
      CALL FG_WAITKEY

      CALL FG_SETCOLOR(15)
      CALL FG_FADEOUT(0)
      CALL FG_WAITKEY

      CALL FG_SETMODE(OLD_MODE)
      CALL FG_RESET

      STOP ' '
      END
